<?php

	
$id =$_POST['id'];		
$name =$_POST['title'];
$link=$_POST['address'];
echo $id;
$num =11;

require_once ("../../config.inc.php");
require_once ("../../include/mysql.inc.php");
require_once ("../../include/link.inc.php");

$LinkDao = new Link();
$flag=$LinkDao->update($id, $name, $link, $num);
if ($flag) {
	echo "修改链接成功！<br/><a href='../../admin/linkList.php'>跳转到链接列表</a>";
}
else {
	echo "修改链接失败！<br/><a href='' onclick='javascript:history.back(-1);'>返回到链接页面</a>";
}

?>
